package com.rybbaby.tss.front.tssMemberPackage.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @description 会员课时包
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-10 上午12:04:35
 */
@Entity
@Table(name = "view_package_refund_details")
@DynamicUpdate(true)
@DynamicInsert(true)
public class ViewPackageRefundDetails implements Serializable {


	/** 主键 **/
	private String id;
	/** 会员Id **/
	private String memberId;
	/** 课时包Id **/
	private String packageId;
	/** 可用课时数 **/
	private Integer usableTotalClassHour;
	/** 当前操作者Id **/
	private String adminUserId;

	/** 创建时间 **/
	private java.sql.Timestamp createTime;

	/** 剩余课时数 **/
	private Integer surplusClassHour;



	/**
	 * 方法: 取得主键
	 *
	 * @return java.lang.String 主键
	 */
	@Id
	@GeneratedValue(generator = "tss_member_packageIDGenerator" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "tss_member_packageIDGenerator" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}

	/**
	 * 方法: 设置主键
	 *
	 * @param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}


}